mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Use proper quotes everywhere
This commit is contained in:
parent
373fad75e1
commit
11849a320e
54 changed files with 548 additions and 543 deletions
|
@ -548,7 +548,7 @@ static void processConnection(bool trusted)
|
|||
/* Prevent users from doing something very dangerous. */
|
||||
if (geteuid() == 0 &&
|
||||
querySetting("build-users-group", "") == "")
|
||||
throw Error("if you run `nix-daemon' as root, then you MUST set `build-users-group'!");
|
||||
throw Error("if you run ‘nix-daemon’ as root, then you MUST set ‘build-users-group’!");
|
||||
#endif
|
||||
|
||||
/* Open the store. */
|
||||
|
@ -683,7 +683,7 @@ static void daemonLoop(char * * argv)
|
|||
struct sockaddr_un addr;
|
||||
addr.sun_family = AF_UNIX;
|
||||
if (socketPathRel.size() >= sizeof(addr.sun_path))
|
||||
throw Error(format("socket path `%1%' is too long") % socketPathRel);
|
||||
throw Error(format("socket path ‘%1%’ is too long") % socketPathRel);
|
||||
strcpy(addr.sun_path, socketPathRel.c_str());
|
||||
|
||||
unlink(socketPath.c_str());
|
||||
|
@ -695,12 +695,12 @@ static void daemonLoop(char * * argv)
|
|||
int res = bind(fdSocket, (struct sockaddr *) &addr, sizeof(addr));
|
||||
umask(oldMode);
|
||||
if (res == -1)
|
||||
throw SysError(format("cannot bind to socket `%1%'") % socketPath);
|
||||
throw SysError(format("cannot bind to socket ‘%1%’") % socketPath);
|
||||
|
||||
chdir("/"); /* back to the root */
|
||||
|
||||
if (listen(fdSocket, 5) == -1)
|
||||
throw SysError(format("cannot listen on socket `%1%'") % socketPath);
|
||||
throw SysError(format("cannot listen on socket ‘%1%’") % socketPath);
|
||||
}
|
||||
|
||||
closeOnExec(fdSocket);
|
||||
|
@ -752,7 +752,7 @@ static void daemonLoop(char * * argv)
|
|||
trusted = true;
|
||||
|
||||
if (!trusted && !matchUser(user, group, allowedUsers))
|
||||
throw Error(format("user `%1%' is not allowed to connect to the Nix daemon") % user);
|
||||
throw Error(format("user ‘%1%’ is not allowed to connect to the Nix daemon") % user);
|
||||
|
||||
printMsg(lvlInfo, format((string) "accepted connection from pid %1%, user %2%"
|
||||
+ (trusted ? " (trusted)" : "")) % clientPid % user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue