summaryrefslogtreecommitdiff
path: root/mount-setup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-08 01:43:07 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-08 01:43:07 +0200
commitc9af1080bc318f89238ff7fbe03134c25169a1bc (patch)
tree6f8cd2b9ed3eebbff5fbd1d1f2a81c4fe34bf04b /mount-setup.c
parenta096ed36f043770ee35cd4d2d292ba0e67ba2c1b (diff)
mount-setup: properly show NULL mount options
Diffstat (limited to 'mount-setup.c')
-rw-r--r--mount-setup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mount-setup.c b/mount-setup.c
index 18d3911be4..a0eb75ca6a 100644
--- a/mount-setup.c
+++ b/mount-setup.c
@@ -29,6 +29,8 @@
#include "mount-setup.h"
#include "log.h"
+#include "macro.h"
+#include "util.h"
enum {
MOUNT_WHAT,
@@ -94,7 +96,7 @@ static int mount_one(const char *t[]) {
t[MOUNT_WHAT],
t[MOUNT_WHERE],
t[MOUNT_TYPE],
- t[MOUNT_OPTIONS]);
+ strna(t[MOUNT_OPTIONS]));
if (mount(t[MOUNT_WHAT],
t[MOUNT_WHERE],