unbrice / shake

Shake is a defragmenter that runs in userspace
Other
42 stars 5 forks source link

tmpfile location ? #25

Open bartoszek opened 3 years ago

bartoszek commented 3 years ago

Shouldn't tmpfile location be specified and actually put in /tmp/ or /var/tmp instead of putting it in $HOME ? https://github.com/unbrice/shake/blob/33dd09dfd77dba8e73da194d2ea4c1e0d9c90ace/main.c#L276

$sudo pv -d `pgrep shake`
3:/home/bartus/shakej9LlvJ:  252 B 0:19:05 [17MiB/s] [  <=>  ]
unbrice commented 2 years ago

It's in the working directory actually, but I think you're right it should be $TMPDIR. Care to send a patch?