]> err.no Git - systemd/commitdiff
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 18d3911be45e9c8f7db174beccfaf6710b427691..a0eb75ca6a14d6954c03c66d3669bd7b400b9551 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],