diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-06-29 22:13:16 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-06-29 22:13:16 +0200 |
commit | ea6ea2f554bc81b856d5286c23c2b4c8ba303fb9 (patch) | |
tree | a7612150e315e6a74638e0d9eee91409be488802 /procfs/procfs_dir.c | |
parent | 26b18d8e7d8bb5f1bf9ae20e40e8b291db3cebd6 (diff) | |
download | hurd-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