diff --git a/xemacs.changes b/xemacs.changes index 475c78a..c23b12a 100644 --- a/xemacs.changes +++ b/xemacs.changes @@ -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 diff --git a/xemacs.patch b/xemacs.patch index 271c6da..6956bc4 100644 --- a/xemacs.patch +++ b/xemacs.patch @@ -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; + }