mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-16 14:21:03 +01:00
BUILD: sink: replace S_IRUSR, S_IWUSR with their octal value
The build broke on freebsd with S_IRUSR undefined after commit 0b8e9ceb1
("MINOR: ring: add support for a backing-file"). Maybe another include
is needed there, but the point is that we really don't care about these
symbolic names, file modes are more readable as 0600 than via these
cryptic names anyway, so let's go back to 0600. This will teach me not
to try to make things too clean.
No backport is needed.
This commit is contained in:
parent
bfb077acff
commit
8e87705c21
@ -862,7 +862,7 @@ int cfg_parse_ring(const char *file, int linenum, char **args, int kwm)
|
||||
goto err;
|
||||
}
|
||||
|
||||
fd = open(backing, O_RDWR | O_CREAT, S_IRUSR|S_IWUSR);
|
||||
fd = open(backing, O_RDWR | O_CREAT, 0600);
|
||||
if (fd < 0) {
|
||||
ha_alert("parsing [%s:%d] : cannot open backing-file '%s' for ring '%s': %s.\n", file, linenum, backing, cfg_sink->name, strerror(errno));
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user