diff options
Diffstat (limited to 'umount.c')
-rw-r--r-- | umount.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -101,7 +101,7 @@ void mtab_read(void) | |||
101 | return; | 101 | return; |
102 | 102 | ||
103 | if ((fp = setmntent(mtab_file, "r")) == NULL) { | 103 | if ((fp = setmntent(mtab_file, "r")) == NULL) { |
104 | fprintf(stderr, "Cannot open %s\n", mtab_file); | 104 | errorMsg("Cannot open %s\n", mtab_file); |
105 | return; | 105 | return; |
106 | } | 106 | } |
107 | while ((e = getmntent(fp))) { | 107 | while ((e = getmntent(fp))) { |
@@ -209,11 +209,9 @@ static int do_umount(const char *name, int useMtab) | |||
209 | status = mount(blockDevice, name, NULL, | 209 | status = mount(blockDevice, name, NULL, |
210 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); | 210 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); |
211 | if (status == 0) { | 211 | if (status == 0) { |
212 | fprintf(stderr, "umount: %s busy - remounted read-only\n", | 212 | errorMsg("%s busy - remounted read-only\n", blockDevice); |
213 | blockDevice); | ||
214 | } else { | 213 | } else { |
215 | fprintf(stderr, "umount: Cannot remount %s read-only\n", | 214 | errorMsg("Cannot remount %s read-only\n", blockDevice); |
216 | blockDevice); | ||
217 | } | 215 | } |
218 | } | 216 | } |
219 | if (status == 0) { | 217 | if (status == 0) { |