diff options
author | Madhusudan.C.S <madhusudancs@gmail.com> | 2008-08-18 17:27:00 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-01 01:29:57 +0200 |
commit | a027dcc41d381a3c76a5b20d4d55ad9821af2308 (patch) | |
tree | 6dab26eecebccd016623a8bac1bd5784fc5af729 /procfs_pid_files.c | |
parent | 0419c2813a91d0746cc70f4ecab33efca4b9440c (diff) | |
download | hurd-a027dcc41d381a3c76a5b20d4d55ad9821af2308.tar.gz hurd-a027dcc41d381a3c76a5b20d4d55ad9821af2308.tar.bz2 hurd-a027dcc41d381a3c76a5b20d4d55ad9821af2308.zip |
2008-08-18 Madhusudan.C.S <madhusudancs@gmail.com>
* procfs_nonpid_files.c:
(procfs_write_nonpid_version): New function.
* procfs_pid_files.c:
(procfs_write_files_contents): Add a check
to find if the read is requested for the
version file and corresponding a call to it.
Diffstat (limited to 'procfs_pid_files.c')
-rw-r--r-- | procfs_pid_files.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/procfs_pid_files.c b/procfs_pid_files.c index 55cc52c1..3ad77340 100644 --- a/procfs_pid_files.c +++ b/procfs_pid_files.c @@ -565,5 +565,12 @@ procfs_write_files_contents (struct node *node, else err = ENOENT; + if (! strcmp (node->nn->dir_entry->name, "version")) + if (! strcmp (node->nn->dir_entry->dir->fs_path, "")) + err = procfs_write_nonpid_version (node->nn->dir_entry, + offset, len, data); + else + err = ENOENT; + return err; } |