]> sourceware.org Git - newlib-cygwin.git/commitdiff
* ntdll.h: Fix copyright date.
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 14 Apr 2004 21:11:45 +0000 (21:11 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 14 Apr 2004 21:11:45 +0000 (21:11 +0000)
* 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.

winsup/cygwin/ChangeLog
winsup/cygwin/ntdll.h
winsup/cygwin/sec_acl.cc
winsup/cygwin/syscalls.cc

index ef11031dd7aec10492d8dfa82e912c58c67451be..34cde7194b2d96f9f326f359768be85fce691dd3 100644 (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>
 
        * sec_acl.cc (getacl): Avoid compiler warning.
index d82ce4971c4ee8649fb2c1eaf737333f6cee16d8..2ecedcf012972e20249e3fe92b48af41eceadf15 100644 (file)
@@ -1,6 +1,6 @@
 /* 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.
 
index ed1446e2e44b4dd2236b25cb4df09d551eb96622..0e20a9fc525cafad3725da1581731702528f88b3 100644 (file)
@@ -421,6 +421,8 @@ acl_worker (const char *path, int cmd, int nentries, __aclent32_t *aclbufp,
     }
   else
     res = fh->facl (cmd, nentries, aclbufp);
+
+  delete fh;
   syscall_printf ("%d = acl (%s)", res, path);
   return res;
 }
index d4fc77dfcc523483ffaba6a77147ef27631c9642..659f33185478beb0b5157e006b3408d513b2b4f0 100644 (file)
@@ -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)
This page took 0.040123 seconds and 5 git commands to generate.