Changeset 98b785e in rtems for cpukit/libcsupport/src/chown.c


Ignore:
Timestamp:
Jul 1, 2010, 5:22:03 PM (10 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.