mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
12 lines
312 B
Diff
12 lines
312 B
Diff
|
--- a/kernel2minor.c
|
||
|
+++ b/kernel2minor.c
|
||
|
@@ -622,7 +622,7 @@ int main(int argc, char *argv[]){
|
||
|
perror("Can't open kernel file");
|
||
|
exit(-1);
|
||
|
}
|
||
|
- r = creat(res_file, 0);
|
||
|
+ r = open(res_file, O_CREAT | O_TRUNC | O_WRONLY, 0644);
|
||
|
if(r <= 0){
|
||
|
perror("Can't create result file");
|
||
|
close(k);
|