Skip to content

Commit

Permalink
Fix the packing of struct statfs_
Browse files Browse the repository at this point in the history
The standalone version git-annex uses the statfs syscall, which has
apparently never been tested because everything else uses the statfs64
syscall. This smashed the stack.
  • Loading branch information
tbodt committed Apr 13, 2020
1 parent 33ea7c8 commit f06d145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct statfs_ {
uint_t frsize;
uint_t flags;
uint_t spare[4];
};
} __attribute__((packed));

struct statfs64_ {
uint_t type;
Expand Down

0 comments on commit f06d145

Please sign in to comment.