This commit is contained in:
parent
a3ff377ad6
commit
3a1f3f3052
20
nano-2.0.6.patch
Normal file
20
nano-2.0.6.patch
Normal 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");
|
@ -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
|
Thu May 3 13:30:59 CEST 2007 - cthiel@suse.de
|
||||||
|
|
||||||
|
14
nano.spec
14
nano.spec
@ -12,14 +12,15 @@
|
|||||||
|
|
||||||
Name: nano
|
Name: nano
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
URL: http://www.nano-editor.org/
|
Url: http://www.nano-editor.org/
|
||||||
License: GNU General Public License (GPL)
|
License: GPL v2 or later
|
||||||
Group: Productivity/Editors/Other
|
Group: Productivity/Editors/Other
|
||||||
Autoreqprov: on
|
AutoReqProv: on
|
||||||
Summary: Pico Editor Clone with Enhancements
|
Summary: Pico Editor Clone with Enhancements
|
||||||
Version: 2.0.6
|
Version: 2.0.6
|
||||||
Release: 1
|
Release: 38
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
|
Patch: %{name}-%{version}.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,6 +41,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-all
|
%configure --enable-all
|
||||||
@ -64,6 +66,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/nano
|
%{_datadir}/nano
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu May 03 2007 - cthiel@suse.de
|
||||||
- update to version 2.0.6
|
- update to version 2.0.6
|
||||||
* GNU nano 2.0.6 "that was quick" is released. This release fixes a
|
* GNU nano 2.0.6 "that was quick" is released. This release fixes a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user