makedevs: shrink by Vladimir
[oweals/busybox.git] / modutils / depmod.c
index d128ac0ff4ead4e49826ebc06534c3343821fb5b..b6a914eb051ccdf0b7c9b76912940d313200557f 100644 (file)
@@ -150,7 +150,7 @@ int depmod_main(int argc UNUSED_PARAM, char **argv)
 
        if (!(option_mask32 & ARG_n)) { /* --dry-run */
                chp = concat_path_file(moddir, CONFIG_DEFAULT_DEPMOD_FILE);
-               filedes = xfopen(chp, "w");
+               filedes = xfopen_for_write(chp);
                if (ENABLE_FEATURE_CLEAN_UP)
                        free(chp);
        }