Commit Graph

4310 Commits

Author SHA1 Message Date
Karel Zak bafd2d4653 hexdump: make code more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 15:34:08 +01:00
Karel Zak 7552258a75 lib/loopdev: remove dead assigment and null deference
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:48:03 +01:00
Karel Zak 59dbbcef17 sfdisk: remove dead assigment
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:43:07 +01:00
Karel Zak a9ddf316c8 libmount: don't ignore chmod/own errors
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:39:02 +01:00
Karel Zak fec1339f9f blkid: remove dead assigment
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:33:18 +01:00
Karel Zak 8b04761dc6 lib/loopdev: fix part scan detection code
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:29:22 +01:00
Karel Zak 383e7a2720 libmount: remove dead assigment
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:27:48 +01:00
Karel Zak 23341bd4d9 hwclock: remove never read value
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:26:04 +01:00
Karel Zak 4f89978868 hwclock: clean usage, remove redundat code
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:23:49 +01:00
Karel Zak c6f23b3ba1 login: (and chsh) make pw_shell usage more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 14:13:45 +01:00
Karel Zak 762ef0e12d findmnt: initialize rc variable 2012-02-02 12:50:44 +01:00
Karel Zak 15705de0ed blockdev: make the code more readable for static analysers
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 12:49:13 +01:00
Karel Zak 574d9252a1 sfdisk: cleanup fd usage 2012-02-02 12:44:27 +01:00
Karel Zak 6ce0b7d8a7 sfdisk: fix typo in cdrom detection
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 12:34:53 +01:00
Karel Zak ad655c88ff lscpu: fix fd leak
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 12:32:45 +01:00
Karel Zak 06c243d358 sfdisk: fix fd leak
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 12:28:54 +01:00
Karel Zak 275c9a4849 findmnt: make --poll more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 00:05:24 +01:00
Karel Zak 5415374ddf lib/sysfs: fix handle leak
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 23:02:21 +01:00
Karel Zak e766a3b088 kill: fix fd leak
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 14:03:20 +01:00
Karel Zak 1c6b33784b fdisk: fix cdrom detection
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 13:42:08 +01:00
Karel Zak 1f19513b72 newgrp: fix possible FILE leak on error
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 13:37:57 +01:00
Karel Zak 2e566efda3 lib/loopdev: fix possible dir leak on error
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 13:06:34 +01:00
Karel Zak 06ae069bc3 lib/sysfs: fix possible fd leak on error
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 13:03:58 +01:00
Karel Zak 467d50fa92 vipw: don't modify environment, check strtok() return value
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 12:41:25 +01:00
Karel Zak 701e2b8e53 chcpu: check get_max_number_of_cpus() result properly
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 12:26:32 +01:00
Karel Zak 8162b75a35 cfdisk: wctomb() returns -1 on error
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 12:05:31 +01:00
Karel Zak 8379e2e0bf fdisk: don't swap unsigned char
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 11:53:45 +01:00
Karel Zak 43e3f05417 partx: fix small leak
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-01 09:13:55 +01:00
Karel Zak e4a36b8bf4 fsck.cramfs: mark usage() as noreturn
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 21:20:55 +01:00
Karel Zak 337b8eade0 chrt: add comment to keep static analysers happy 2012-01-31 21:16:28 +01:00
Karel Zak 7113ddecf8 blkid: add comment to keep static analysers happy 2012-01-31 21:16:28 +01:00
Karel Zak 7068841a09 sfdisk: add comment to keep static analysers happy 2012-01-31 21:16:21 +01:00
Karel Zak 099c7a94ce fdisk: add missing break
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 21:06:42 +01:00
Karel Zak c05d46d610 more: add comment
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 21:02:51 +01:00
Karel Zak f8ff4ebb15 swapon: add break to keep static analysers happy 2012-01-31 20:59:54 +01:00
Karel Zak 7e1b144664 umount: add missing break
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 20:58:30 +01:00
Karel Zak 2b586af308 libblkid: fix suspicious implicit sign extension [coverity scan]
... thanks to "value preserving rules".

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 15:11:55 +01:00
Karel Zak 3be359813c libblkid: more robust idx usage [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 15:03:27 +01:00
Karel Zak 960bf13048 lscpu: dereferencing NULL pointer [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 15:00:52 +01:00
Karel Zak 8af0d7bc44 libblkid: make fd usage in md code more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 14:56:34 +01:00
Karel Zak 0468860d1a login: comparing an array to null is not useful [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 14:50:22 +01:00
Karel Zak c03d12d874 libblkid: comparing an array to null is not useful [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 14:47:53 +01:00
Karel Zak 2af0a8390d libmount: consolidate sysconf() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 14:31:09 +01:00
Karel Zak fc01644d53 login: more robust sysconf() usage [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 14:23:26 +01:00
Karel Zak d75bcac49a blkid: check fd before use [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 14:19:27 +01:00
Karel Zak 54b6adf344 namei: more robust add_it() [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 14:04:03 +01:00
Karel Zak 7110746576 libblkid: check for NULL in blkid_flush_cache() [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 13:39:49 +01:00
Karel Zak f805423212 libblkid: fix blkid_do_fullprobe() [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 13:35:35 +01:00
Karel Zak 47bcc2768c libblkid: check blkid_probe_set_magic() return in ultrix code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 13:31:23 +01:00
Karel Zak cf94973758 libblkid: check blkid_probe_set_magic() return in GPT code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-31 13:30:03 +01:00