summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-04-14 21:11:45 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-04-14 21:11:45 +0000
commite84c7766c37ce6d04606825188257ea6c35e8e11 (patch)
tree06a6a2390896e68cfab37214b4731875d9a60a65 /winsup/cygwin/syscalls.cc
parenta653f600f5dd6a6d7ede4b2969659f500804233d (diff)
downloadcygnal-e84c7766c37ce6d04606825188257ea6c35e8e11.tar.gz
cygnal-e84c7766c37ce6d04606825188257ea6c35e8e11.tar.bz2
cygnal-e84c7766c37ce6d04606825188257ea6c35e8e11.zip
* ntdll.h: Fix copyright date.
* sec_acl.cc (acl_worker): delete allocated fhandler. * syscalls.cc (chown_worker): Ditto. (chmod): Ditto. (stat_worker): Use get_namehash instead of hash_path_name.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index d4fc77dfc..659f33185 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -837,6 +837,7 @@ chown_worker (const char *name, unsigned fmode, __uid32_t uid, __gid32_t gid)
else
res = fh->fchown (uid, gid);
+ delete fh;
syscall_printf ("%d = %schown (%s,...)",
res, (fmode & PC_SYM_NOFOLLOW) ? "l" : "", name);
return res;
@@ -922,6 +923,7 @@ chmod (const char *path, mode_t mode)
else
res = fh->fchmod (mode);
+ delete fh;
syscall_printf ("%d = chmod (%s, %p)", res, path, mode);
return res;
}
@@ -1070,7 +1072,7 @@ stat_worker (const char *name, struct __stat64 *buf, int nofollow)
if (!res)
{
if (!buf->st_ino)
- buf->st_ino = hash_path_name (0, fh->get_win32_name ());
+ buf->st_ino = fh->get_namehash ();
if (!buf->st_dev)
buf->st_dev = fh->get_device ();
if (!buf->st_rdev)