diff options
Diffstat (limited to 'toys/pending')
-rw-r--r-- | toys/pending/mdev.c | 3 | ||||
-rw-r--r-- | toys/pending/tar.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/toys/pending/mdev.c b/toys/pending/mdev.c index 9ee1f642..cab51e11 100644 --- a/toys/pending/mdev.c +++ b/toys/pending/mdev.c @@ -187,8 +187,7 @@ found_device: return; } - if (strchr(device_name, '/')) - mkpathat(AT_FDCWD, toybuf, 0, 2); + if (strchr(device_name, '/')) mkpath(toybuf); if (mknod(toybuf, mode | type, dev_makedev(major, minor)) && errno != EEXIST) perror_exit("mknod %s failed", toybuf); diff --git a/toys/pending/tar.c b/toys/pending/tar.c index 4d6979db..c2946225 100644 --- a/toys/pending/tar.c +++ b/toys/pending/tar.c @@ -378,7 +378,7 @@ static void extract_to_disk(struct archive_handler *tar) if (file_hdr->name[flags-1] == '/') file_hdr->name[flags-1] = 0; //Regular file with preceding path if ((s = strrchr(file_hdr->name, '/'))) { - if (mkpathat(AT_FDCWD, file_hdr->name, 00, 2) && errno !=EEXIST) { + if (mkpath(file_hdr->name) && errno !=EEXIST) { error_msg(":%s: not created", file_hdr->name); return; } |