diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-01 16:29:17 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-01 16:29:17 +0000 |
commit | cfcdb5b218a3ff87465d2b15d45be060683ed8d3 (patch) | |
tree | 43570ecc192a305f167e05eebe103dfe8f40f884 /cpukit/libfs | |
parent | 2010-07-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-cfcdb5b218a3ff87465d2b15d45be060683ed8d3.tar.bz2 |
2010-07-01 Vinu Rajashekhar <vinutheraj@gmail.com>
PR 1529/cpukit
* utime.c: Change file access time and modified time to
current time if pointer to struct utimbuf is NULL.
* imfs_utime.c: Upon successful completion, imfs_utime() marks
the time of the last file status change, st_ctime, to be updated.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_utime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_utime.c b/cpukit/libfs/src/imfs/imfs_utime.c index 0a120f02d3..2867e13ed6 100644 --- a/cpukit/libfs/src/imfs/imfs_utime.c +++ b/cpukit/libfs/src/imfs/imfs_utime.c @@ -36,6 +36,7 @@ int IMFS_utime( the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; + the_jnode->stat_ctime = time( NULL ); return 0; } |