Tookmund / Swapspace

A fork of Jeroen T. Vermeulen's excellent dynamic swap space manager
GNU General Public License v2.0
128 stars 12 forks source link

swap file directory permissions wrong, fixing #20

Closed linxon closed 4 years ago

linxon commented 4 years ago

it always return this alert while starting service: Selection_066

minako-chan:/var/lib # getfacl /var/lib/swapspace/
getfacl: Removing leading '/' from absolute path names
# file: var/lib/swapspace/
# owner: root
# group: root
user::rwx
group::---
other::---
minako-chan:/var/lib # stat /var/lib/swapspace/
  File: /var/lib/swapspace/
  Size: 54          Blocks: 0          IO Block: 4096   directory
Device: 16h/22d Inode: 671451      Links: 1
Access: (0700/drwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-03-20 15:56:16.535400877 +0300
Modify: 2020-03-20 15:30:41.353007576 +0300
Change: 2020-03-20 15:56:16.535400877 +0300
 Birth: 2020-02-16 10:55:53.574589892 +0300
Tookmund commented 4 years ago

Thanks for catching this! I forgot about the file type bit when writing this code, so this check always fails. It's a quick fix I'll push it soon and close this issue.