* 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>
+ * 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>
+
* sec_acl.cc (getacl): Avoid compiler warning.
* security.cc (write_sd): Ditto. Fix error handling.
/* 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.
}
else
res = fh->facl (cmd, nentries, aclbufp);
+
+ delete fh;
syscall_printf ("%d = acl (%s)", res, path);
return res;
}
else
res = fh->fchown (uid, gid);
+ delete fh;
syscall_printf ("%d = %schown (%s,...)",
res, (fmode & PC_SYM_NOFOLLOW) ? "l" : "", name);
return res;
else
res = fh->fchmod (mode);
+ delete fh;
syscall_printf ("%d = chmod (%s, %p)", res, path, mode);
return res;
}
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)