mirror of
https://github.com/samba-team/samba.git
synced 2025-10-23 11:33:16 +03:00
s3: Fix bug 7470
S_IREAD and S_IWRITE are not standard. Thanks to Joachim Schmitz <schmitz@hp.com> for reporting!
This commit is contained in:
@@ -279,7 +279,8 @@ int main( int argc, char *argv[] )
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if ( !(outfile = regfio_open( new_filename, (O_RDWR|O_CREAT|O_TRUNC), (S_IREAD|S_IWRITE) )) ) {
|
||||
if ( !(outfile = regfio_open( new_filename, (O_RDWR|O_CREAT|O_TRUNC),
|
||||
(S_IRUSR|S_IWUSR) )) ) {
|
||||
fprintf( stderr, "Failed to open new file %s!\n", new_filename );
|
||||
fprintf( stderr, "Error was (%s)\n", strerror(errno) );
|
||||
exit (1);
|
||||
|
Reference in New Issue
Block a user