Use urandom for dropbear keying
[gumsense-br.git] / package / aumix / aumix.patch
blob397d5bbbe63d255c5392aa201b6d96ba07659d4f
1 --- a/src/common.c
2 +++ b/src/common.c
3 @@ -562,11 +562,11 @@
5 /* fopen will fail if mode=='w' and filename is a directory, so we
6 * only need to check the mode=='r' case */
7 - if (*mode == 'r') {
8 - result = stat(filename, &s);
9 - if (result != 0) return NULL; /* stat() failed */
10 - if (S_ISDIR(s.st_mode)) return NULL; /* is a directory, so bail */
11 - }
12 +// if (*mode == 'r') {
13 +// result = stat(filename, &s);
14 +// if (result != 0) return NULL; /* stat() failed */
15 +// if (S_ISDIR(s.st_mode)) return NULL; /* is a directory, so bail */
16 +// }
17 return fopen(filename, mode);