summaryrefslogtreecommitdiffstats
path: root/collage
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-10 01:32:48 +0000
committerMatt Wilson <msw@redhat.com>1999-09-10 01:32:48 +0000
commit3c0101e3177753e32449e76b2279441cf742d0c2 (patch)
treec75b0aa7414a0f151cd3041bf712f85792d03146 /collage
parentd2bceb4e3c76a61592734c00fa1e92d4a4be3221 (diff)
downloadanaconda-3c0101e3177753e32449e76b2279441cf742d0c2.tar.gz
anaconda-3c0101e3177753e32449e76b2279441cf742d0c2.tar.xz
anaconda-3c0101e3177753e32449e76b2279441cf742d0c2.zip
fixed mknod
Diffstat (limited to 'collage')
-rw-r--r--collage/commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/collage/commands.c b/collage/commands.c
index d7b9fce5f..f181b9cd3 100644
--- a/collage/commands.c
+++ b/collage/commands.c
@@ -174,6 +174,7 @@ int mknodCommand(int argc, char ** argv) {
if (argc == 2) {
end = path + strlen(path) - 1;
while (end > path && *end != '/') end--;
+ if (*end == '/') end++;
if (devMakeInode(end, path)) {
return 1;