/* 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;
}
optind++;
}
- create_path(dpkgcidir, 0755);
- create_path(infodir, 0755);
+ create_path(dpkgcidir, S_IRWXU);
+ create_path(infodir, S_IRWXU);
status = status_read();
/* 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;
}
optind++;
}
- create_path(dpkgcidir, 0755);
- create_path(infodir, 0755);
+ create_path(dpkgcidir, S_IRWXU);
+ create_path(infodir, S_IRWXU);
status = status_read();