chiark / gitweb /
mount-setup: properly show NULL mount options
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 23:43:07 +0000 (01:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 23:43:07 +0000 (01:43 +0200)
mount-setup.c

index 18d3911..a0eb75c 100644 (file)
@@ -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],