Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-07-14 04:09:33 +0400
committerChristopher Faylor <me@cgf.cx>2001-07-14 04:09:33 +0400
commitfc901253d174dcbf1468114041086e5090cba629 (patch)
tree943d5fa7527e768767878897b6e632c4df97b6c7
parent2aa2adb2d27e9323d739321acff1aba46cbab7e0 (diff)
* syscalls.cc (stat_worker): Simplify previous change.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/syscalls.cc9
2 files changed, 7 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c8fa9689b..6d7fd7741 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Fri 13 Jul 2001 08:08:49 PM EDT Christopher Faylor <cgf@cygnus.com>
+
+ * syscalls.cc (stat_worker): Simplify previous change.
+
Fri Jul 13 13:13:09 2001 Christopher Faylor <cgf@cygnus.com>
* syscalls.cc (_unlink): Correct (?) logic which determines when
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index d76c2cf1a..2e3f4262a 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1032,7 +1032,6 @@ stat_worker (const char *caller, const char *name, struct stat *buf,
int attribute = 0;
uid_t uid;
gid_t gid;
- int err;
UINT dtype;
fhandler_disk_file fh (NULL);
@@ -1050,11 +1049,9 @@ stat_worker (const char *caller, const char *name, struct stat *buf,
goto done;
}
- if ((err = check_null_invalid_struct_errno (buf)))
- {
- set_errno (err);
- goto done;
- }
+ if (check_null_invalid_struct_errno (buf))
+ goto done;
+
memset (buf, 0, sizeof (struct stat));
if (real_path.is_device ())