aboutsummaryrefslogtreecommitdiff
path: root/mtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mtab.c b/mtab.c
index 1f2083709..ab805e9c1 100644
--- a/mtab.c
+++ b/mtab.c
@@ -27,7 +27,7 @@ void erase_mtab(const char *name)
27 /* Bummer. fall back on trying the /proc filesystem */ 27 /* Bummer. fall back on trying the /proc filesystem */
28 && (mountTable = setmntent("/proc/mounts", "r")) == 0) { 28 && (mountTable = setmntent("/proc/mounts", "r")) == 0) {
29#endif 29#endif
30 perror(mtab_file); 30 perror_msg("%s", mtab_file);
31 return; 31 return;
32 } 32 }
33 33
@@ -55,7 +55,7 @@ void erase_mtab(const char *name)
55 } 55 }
56 endmntent(mountTable); 56 endmntent(mountTable);
57 } else if (errno != EROFS) 57 } else if (errno != EROFS)
58 perror(mtab_file); 58 perror_msg("%s", mtab_file);
59} 59}
60 60
61void write_mtab(char *blockDevice, char *directory, 61void write_mtab(char *blockDevice, char *directory,
@@ -65,7 +65,7 @@ void write_mtab(char *blockDevice, char *directory,
65 struct mntent m; 65 struct mntent m;
66 66
67 if (mountTable == 0) { 67 if (mountTable == 0) {
68 perror(mtab_file); 68 perror_msg("%s", mtab_file);
69 return; 69 return;
70 } 70 }
71 if (mountTable) { 71 if (mountTable) {