diff options
-rw-r--r-- | initscripts.spec | 5 | ||||
-rw-r--r-- | src/shvar.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/initscripts.spec b/initscripts.spec index cbde688f..c15a818d 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -1,6 +1,6 @@ Summary: The inittab file and the /etc/rc.d scripts. Name: initscripts -%define version 4.86 +%define version 4.87 Version: %{version} Copyright: GPL Group: System Environment/Base @@ -227,6 +227,9 @@ rm -rf $RPM_BUILD_ROOT %ghost %attr(0664,root,utmp) /var/run/utmp %changelog +* Tue Feb 1 2000 Nalin Dahyabhai <nalin@redhat.com> +- shvar cleaning + * Mon Jan 31 2000 Nalin Dahyabhai <nalin@redhat.com> - attempt to restore default route if PPP takes it over - man page fix for ipcalc diff --git a/src/shvar.c b/src/shvar.c index 9b1d8f92..c329d2e8 100644 --- a/src/shvar.c +++ b/src/shvar.c @@ -51,7 +51,7 @@ svNewFile(char *name) if (s->fd == -1) { /* try read-only */ s->fd = open(name, O_RDONLY); /* NOT O_CREAT */ - if (s->fd) closefd = 1; + if (s->fd != -1) closefd = 1; } s->fileName = g_strdup(name); @@ -72,9 +72,9 @@ svNewFile(char *name) close(s->fd); s->fd = -1; } - } - return s; + return s; + } bail: if (s->fd != -1) close(s->fd); |