aboutsummaryrefslogtreecommitdiff
path: root/procfs/procfs_dir.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-06-29 22:13:16 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-29 22:13:16 +0200
commitea6ea2f554bc81b856d5286c23c2b4c8ba303fb9 (patch)
treea7612150e315e6a74638e0d9eee91409be488802 /procfs/procfs_dir.c
parent26b18d8e7d8bb5f1bf9ae20e40e8b291db3cebd6 (diff)
downloadhurd-ea6ea2f554bc81b856d5286c23c2b4c8ba303fb9.tar.gz
hurd-ea6ea2f554bc81b856d5286c23c2b4c8ba303fb9.tar.bz2
hurd-ea6ea2f554bc81b856d5286c23c2b4c8ba303fb9.zip
procfs: keep old config values if the parsing fails
Previously if strtol failed the previous configuration value would get overwritten. Prevent this by storing the result in a temporary variable and update the configuration if the argument was parsed correctly and passed the sanity checks. * procfs/main.c (argp_parser): Keep old configuration in case a malformed value is encountered.
Diffstat (limited to 'procfs/procfs_dir.c')
0 files changed, 0 insertions, 0 deletions