summaryrefslogtreecommitdiff
path: root/procfs_pid_files.c
diff options
context:
space:
mode:
authorMadhusudan.C.S <madhusudancs@gmail.com>2008-08-18 17:27:00 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 01:29:57 +0200
commit415e86d598c4e15d69b5f558d305b735462083bc (patch)
tree1c4c6da99cfcabfb0799bddcdba3663e5729e244 /procfs_pid_files.c
parent688a421a1aef82d2688909f106c4a70172530b81 (diff)
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.c7
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;
}