diff options
Diffstat (limited to 'libmount/src/tab_update.c')
-rw-r--r-- | libmount/src/tab_update.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c index 631e1cd9f..d85cb89da 100644 --- a/libmount/src/tab_update.c +++ b/libmount/src/tab_update.c @@ -105,7 +105,9 @@ int mnt_update_set_filename(struct libmnt_update *upd, const char *filename, /* detect tab filename -- /etc/mtab or /run/mount/utab */ +#ifdef USE_LIBMOUNT_SUPPORT_MTAB mnt_has_regular_mtab(&path, &rw); +#endif if (!rw) { path = NULL; mnt_has_regular_utab(&path, &rw); |