Changeset 98b785e in rtems


Ignore:
Timestamp:
Jul 1, 2010, 5:22:03 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
c40d3c4b
Parents:
58f09375
Message:

2010-07-01 Vinu Rajashekhar <vinutheraj@…>

PR 1597/cpukit

  • libcsupport/Makefile.am, libcsupport/src/chown.c: Add lchown() and utimes().
  • libcsupport/src/lchown.c, libcsupport/src/utimes.c: New files.
Location:
cpukit
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r58f09375 r98b785e  
     12010-07-01      Vinu Rajashekhar <vinutheraj@gmail.com>
     2
     3        PR 1597/cpukit
     4        * libcsupport/Makefile.am, libcsupport/src/chown.c: Add lchown() and
     5        utimes().
     6        * libcsupport/src/lchown.c, libcsupport/src/utimes.c: New files.
     7
    182010-07-01      Vinu Rajashekhar <vinutheraj@gmail.com>
    29
  • cpukit/libcsupport/Makefile.am

    r58f09375 r98b785e  
    6363    src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \
    6464    src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c src/creat.c \
    65     src/chroot.c src/sync.c src/_rename_r.c src/statvfs.c
     65    src/chroot.c src/sync.c src/_rename_r.c src/statvfs.c src/utimes.c src/lchown.c
    6666
    6767## Until sys/uio.h is moved to libcsupport, we have to have networking
  • cpukit/libcsupport/src/chown.c

    r58f09375 r98b785e  
    2525#include <rtems/seterr.h>
    2626
    27 int chown(
     27int _chown_helper(
    2828  const char *path,
    2929  uid_t       owner,
    30   gid_t       group
     30  gid_t       group,
     31  int         follow_link
    3132)
    3233{
     
    3435  int                                result;
    3536
    36   if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
     37  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, follow_link ) )
    3738    return -1;
    3839
     
    4344  return result;
    4445}
     46
     47int chown(
     48  const char *path,
     49  uid_t       owner,
     50  gid_t       group
     51)
     52{
     53  return _chown_helper( path, owner, group, true );
     54}
Note: See TracChangeset for help on using the changeset viewer.