rpms/nano/devel nano-2.0.6-open-macro.patch, NONE, 1.1 nano.spec, 1.18, 1.19

David Woodhouse (dwmw2) fedora-extras-commits at redhat.com
Wed Aug 22 17:54:02 UTC 2007


Author: dwmw2

Update of /cvs/pkgs/rpms/nano/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28952

Modified Files:
	nano.spec 
Added Files:
	nano-2.0.6-open-macro.patch 
Log Message:
handle open being a macro

nano-2.0.6-open-macro.patch:

--- NEW FILE nano-2.0.6-open-macro.patch ---
--- nano-2.0.6/src/files.c~	2007-04-21 21:33:56.000000000 +0100
+++ nano-2.0.6/src/files.c	2007-08-22 18:52:11.000000000 +0100
@@ -1518,7 +1518,7 @@ bool write_file(const char *name, FILE *
 	}
 
 	if (f_open == NULL) {
-	    fd_source = open(realname, O_RDONLY | O_CREAT);
+		fd_source = open(realname, O_RDONLY | O_CREAT, 0600);
 
 	    if (fd_source != -1) {
 		f_source = fdopen(fd_source, "rb");
@@ -1637,7 +1637,7 @@ bool write_file(const char *name, FILE *
 	int fd_source;
 	FILE *f_source = NULL;
 
-	fd_source = open(tempname, O_RDONLY | O_CREAT);
+	fd_source = open(tempname, O_RDONLY | O_CREAT, 0600);
 
 	if (fd_source != -1) {
 	    f_source = fdopen(fd_source, "rb");


Index: nano.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nano/devel/nano.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- nano.spec	22 Aug 2007 14:48:11 -0000	1.18
+++ nano.spec	22 Aug 2007 17:53:29 -0000	1.19
@@ -6,6 +6,7 @@
 Group:		Applications/Editors
 URL:		http://www.nano-editor.org
 Source:		http://www.nano-editor.org/dist/v1.3/%{name}-%{version}.tar.gz
+Patch0:		nano-2.0.6-open-macro.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	ncurses-devel, autoconf, gettext-devel, groff
 Requires(post):	 /sbin/install-info
@@ -16,6 +17,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 iconv -f iso-8859-1 -t utf-8 -o nano.1.tmp doc/man/fr/nano.1 && mv nano.1.tmp doc/man/fr/nano.1
 iconv -f iso-8859-1 -t utf-8 -o nanorc.5.tmp doc/man/fr/nano.1 && mv nanorc.5.tmp doc/man/fr/nanorc.5
 




More information about the fedora-extras-commits mailing list