mount: pass NULL, not "", as "data" to mount syscall if we have no opts
authorAlexander Shishkin <virtuoso@slind.org>
Thu, 28 Oct 2010 04:10:03 +0000 (06:10 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 28 Oct 2010 04:10:03 +0000 (06:10 +0200)
commit776509544123c68bbc128c0fdb2f699062d294cf
treebda6c568102334dca82da268b9aa42b012a4ed69
parent78b286fea51ef137d660b91037c89376115a1994
mount: pass NULL, not "", as "data" to mount syscall if we have no opts

When mounting a filesystem without any additional options (data parameter
to the mount(2) syscall), pass NULL instead of an empty string like GNU
mount does. This fixes, for example mounting cgroup fs with bbox mount.

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mount.c