diff options
Diffstat (limited to 'dpkg.c')
-rw-r--r-- | dpkg.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -678,8 +678,7 @@ static int dpkg_unpackcontrol(package_t *pkg) | |||
678 | 678 | ||
679 | /* clean the temp directory (dpkgcidir) be recreating it */ | 679 | /* clean the temp directory (dpkgcidir) be recreating it */ |
680 | remove_dir(dpkgcidir); | 680 | remove_dir(dpkgcidir); |
681 | if (mkdir(dpkgcidir, S_IRWXU) != 0) { | 681 | if (create_path(dpkgcidir, S_IRWXU) == FALSE) { |
682 | perror("mkdir"); | ||
683 | return EXIT_FAILURE; | 682 | return EXIT_FAILURE; |
684 | } | 683 | } |
685 | 684 | ||
@@ -864,8 +863,8 @@ extern int dpkg_main(int argc, char **argv) | |||
864 | optind++; | 863 | optind++; |
865 | } | 864 | } |
866 | 865 | ||
867 | create_path(dpkgcidir, 0755); | 866 | create_path(dpkgcidir, S_IRWXU); |
868 | create_path(infodir, 0755); | 867 | create_path(infodir, S_IRWXU); |
869 | 868 | ||
870 | status = status_read(); | 869 | status = status_read(); |
871 | 870 | ||