aboutsummaryrefslogtreecommitdiff
path: root/swapoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'swapoff.c')
-rw-r--r--swapoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swapoff.c b/swapoff.c
index 55124d0b8..29b9daedd 100644
--- a/swapoff.c
+++ b/swapoff.c
@@ -13,7 +13,7 @@ swapoff_fn(const struct FileInfo * i)
{
struct mntent entries[100];
int count = 0;
- FILE * swapsTable = setmntent("/etc/swaps", "r");
+ FILE * swapsTable = setmntent("/proc/swaps", "r");
struct mntent * m;
if (!(swapoff(i->source))) {