* 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.
This commit is contained in:
Corinna Vinschen 2004-04-14 21:11:45 +00:00
parent a653f600f5
commit e84c7766c3
4 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2004-04-14 Corinna Vinschen <corinna@vinschen.de>
* 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.
2004-04-14 Corinna Vinschen <corinna@vinschen.de> 2004-04-14 Corinna Vinschen <corinna@vinschen.de>
* sec_acl.cc (getacl): Avoid compiler warning. * sec_acl.cc (getacl): Avoid compiler warning.

View File

@ -1,6 +1,6 @@
/* ntdll.h. Contains ntdll specific stuff not defined elsewhere. /* ntdll.h. Contains ntdll specific stuff not defined elsewhere.
Copyright 2000, 2001, 2002, 2003 Red Hat, Inc. Copyright 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
This file is part of Cygwin. This file is part of Cygwin.

View File

@ -421,6 +421,8 @@ acl_worker (const char *path, int cmd, int nentries, __aclent32_t *aclbufp,
} }
else else
res = fh->facl (cmd, nentries, aclbufp); res = fh->facl (cmd, nentries, aclbufp);
delete fh;
syscall_printf ("%d = acl (%s)", res, path); syscall_printf ("%d = acl (%s)", res, path);
return res; return res;
} }

View File

@ -837,6 +837,7 @@ chown_worker (const char *name, unsigned fmode, __uid32_t uid, __gid32_t gid)
else else
res = fh->fchown (uid, gid); res = fh->fchown (uid, gid);
delete fh;
syscall_printf ("%d = %schown (%s,...)", syscall_printf ("%d = %schown (%s,...)",
res, (fmode & PC_SYM_NOFOLLOW) ? "l" : "", name); res, (fmode & PC_SYM_NOFOLLOW) ? "l" : "", name);
return res; return res;
@ -922,6 +923,7 @@ chmod (const char *path, mode_t mode)
else else
res = fh->fchmod (mode); res = fh->fchmod (mode);
delete fh;
syscall_printf ("%d = chmod (%s, %p)", res, path, mode); syscall_printf ("%d = chmod (%s, %p)", res, path, mode);
return res; return res;
} }
@ -1070,7 +1072,7 @@ stat_worker (const char *name, struct __stat64 *buf, int nofollow)
if (!res) if (!res)
{ {
if (!buf->st_ino) 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) if (!buf->st_dev)
buf->st_dev = fh->get_device (); buf->st_dev = fh->get_device ();
if (!buf->st_rdev) if (!buf->st_rdev)