From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010803 Description of problem: when setting a value with sysctl, it does not read back the value but echoes the input back. How reproducible: Always Steps to Reproduce: 1. [root@begot /root]# cat /proc/sys/kernel/shmall 2097152 2. [root@begot /root]# sysctl -w kernel.shmall=banana kernel.shmall = banana 3. [root@begot /root]# cat /proc/sys/kernel/shmall 2097152 Actual Results: banana is not written to /proc/sys/kernel/shmall Expected Results: An error message by sysctl that the value that was given by the user was not actually written. As in [root@begot /root]# sysctl -w kernel.shmall=banana attempt to set kernel.shmall = banana value of kernel.shmall = 2097152 Additional info: this might count as a duplicate of bug 18820
[root@begot root]# rpm -qf `which sysctl` procps-2.0.7-11 [root@begot root]# cat /proc/sys/kernel/shmall 2097152 [root@begot root]# sysctl -w kernel.shmall=banana kernel.shmall = banana [root@begot root]# echo $? 0 [root@begot root]# cat /proc/sys/kernel/shmall 2097152
Fixed in procps-3.1.15-4