SHA256
1
0
forked from pool/nano
OBS User unknown 2007-12-06 16:07:31 +00:00 committed by Git OBS Bridge
parent a3ff377ad6
commit 3a1f3f3052
3 changed files with 37 additions and 4 deletions

20
nano-2.0.6.patch Normal file
View File

@ -0,0 +1,20 @@
--- src/files.c
+++ src/files.c
@@ -1518,7 +1518,7 @@
}
if (f_open == NULL) {
- fd_source = open(realname, O_RDONLY | O_CREAT);
+ fd_source = open(realname, O_RDONLY);
if (fd_source != -1) {
f_source = fdopen(fd_source, "rb");
@@ -1637,7 +1637,7 @@
int fd_source;
FILE *f_source = NULL;
- fd_source = open(tempname, O_RDONLY | O_CREAT);
+ fd_source = open(tempname, O_RDONLY);
if (fd_source != -1) {
f_source = fdopen(fd_source, "rb");

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Dec 6 16:47:35 CET 2007 - cthiel@suse.de
- added nano-2.0.6.patch to fix error: call to '__open_missing_mode'
declared with attribute error: open with O_CREAT in second argument needs
3 arguments
-------------------------------------------------------------------
Thu May 3 13:30:59 CEST 2007 - cthiel@suse.de

View File

@ -12,14 +12,15 @@
Name: nano
BuildRequires: ncurses-devel
URL: http://www.nano-editor.org/
License: GNU General Public License (GPL)
Url: http://www.nano-editor.org/
License: GPL v2 or later
Group: Productivity/Editors/Other
Autoreqprov: on
AutoReqProv: on
Summary: Pico Editor Clone with Enhancements
Version: 2.0.6
Release: 1
Release: 38
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -40,6 +41,7 @@ Authors:
%prep
%setup -q
%patch
%build
%configure --enable-all
@ -64,6 +66,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/nano
%changelog
* Thu Dec 06 2007 - cthiel@suse.de
- added nano-2.0.6.patch to fix error: call to '__open_missing_mode'
declared with attribute error: open with O_CREAT in second argument needs
3 arguments
* Thu May 03 2007 - cthiel@suse.de
- update to version 2.0.6
* GNU nano 2.0.6 "that was quick" is released. This release fixes a