summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath2001-04-08 07:23:53 +0000
committerGlenn L McGrath2001-04-08 07:23:53 +0000
commit37849f3320e3ca3d998ea249594d80f79e4083e2 (patch)
treea02469d2b0c21b6e3dc20e2f3753c186b21a7383
parent13e9c7ad8242212930aad54e71e00b1fa653532c (diff)
downloadbusybox-37849f3320e3ca3d998ea249594d80f79e4083e2.zip
busybox-37849f3320e3ca3d998ea249594d80f79e4083e2.tar.gz
Use create_path instead of mkdir
-rw-r--r--archival/dpkg.c7
-rw-r--r--dpkg.c7
2 files changed, 6 insertions, 8 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index b0f6adc..c992f53 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -678,8 +678,7 @@ static int dpkg_unpackcontrol(package_t *pkg)
/* clean the temp directory (dpkgcidir) be recreating it */
remove_dir(dpkgcidir);
- if (mkdir(dpkgcidir, S_IRWXU) != 0) {
- perror("mkdir");
+ if (create_path(dpkgcidir, S_IRWXU) == FALSE) {
return EXIT_FAILURE;
}
@@ -864,8 +863,8 @@ extern int dpkg_main(int argc, char **argv)
optind++;
}
- create_path(dpkgcidir, 0755);
- create_path(infodir, 0755);
+ create_path(dpkgcidir, S_IRWXU);
+ create_path(infodir, S_IRWXU);
status = status_read();
diff --git a/dpkg.c b/dpkg.c
index b0f6adc..c992f53 100644
--- a/dpkg.c
+++ b/dpkg.c
@@ -678,8 +678,7 @@ static int dpkg_unpackcontrol(package_t *pkg)
/* clean the temp directory (dpkgcidir) be recreating it */
remove_dir(dpkgcidir);
- if (mkdir(dpkgcidir, S_IRWXU) != 0) {
- perror("mkdir");
+ if (create_path(dpkgcidir, S_IRWXU) == FALSE) {
return EXIT_FAILURE;
}
@@ -864,8 +863,8 @@ extern int dpkg_main(int argc, char **argv)
optind++;
}
- create_path(dpkgcidir, 0755);
- create_path(infodir, 0755);
+ create_path(dpkgcidir, S_IRWXU);
+ create_path(infodir, S_IRWXU);
status = status_read();