]> err.no Git - util-linux/commit
swapon: do_swapon() refactoring (move stat() checks)
authorKarel Zak <kzak@redhat.com>
Mon, 2 Mar 2009 10:24:03 +0000 (11:24 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Mar 2009 10:24:03 +0000 (11:24 +0100)
commit88530f9f24fba89fb8f0b9f014a1bf945caa9312
treedc63b570fc6075a198a753aa6efb43d31a036f22
parent99e6d5259ef94068e7ecef9cdc81dc3fec3907f1
swapon: do_swapon() refactoring (move stat() checks)

It's better to do stat() based checks immediately after the stat()
call.

Signed-off-by: Karel Zak <kzak@redhat.com>
mount/swapon.c