Dr. Werner Fink 2015-06-19 14:32:14 +00:00 committed by Git OBS Bridge
parent d7506c280d
commit bc53a426d9
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 19 14:31:38 UTC 2015 - werner@suse.de
- Modify patch xemacs.patch to make open(2) work with O_CREAT
-------------------------------------------------------------------
Tue May 12 16:21:05 UTC 2015 - werner@suse.de

View File

@ -60,13 +60,13 @@ Index: xemacs-21.5.29/lib-src/mmencode.c
+
+ if(mode[0] == 'w') {
+ flags = O_EXCL | O_CREAT | O_WRONLY;
+ fd = open(filename, flags, 00666);
+ }
+ else {
+ flags = O_RDONLY;
+ fd = open(filename, flags);
+ }
+
+ fd = open(filename, flags);
+
+ if(fd == -1) {
+ return (FILE *)0;
+ }