SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
17
net/mosquitto/patches/patch-src_mosquitto_c
Normal file
17
net/mosquitto/patches/patch-src_mosquitto_c
Normal file
|
@ -0,0 +1,17 @@
|
|||
Index: src/mosquitto.c
|
||||
--- src/mosquitto.c.orig
|
||||
+++ src/mosquitto.c
|
||||
@@ -103,10 +103,10 @@ int drop_privileges(struct mosquitto__config *config)
|
||||
log__printf(NULL, MOSQ_LOG_ERR, "Error: Unable to drop privileges to '%s' because this user does not exist.", config->user);
|
||||
return 1;
|
||||
}else{
|
||||
- log__printf(NULL, MOSQ_LOG_ERR, "Warning: Unable to drop privileges to '%s' because this user does not exist. Trying 'nobody' instead.", config->user);
|
||||
- pwd = getpwnam("nobody");
|
||||
+ log__printf(NULL, MOSQ_LOG_ERR, "Warning: Unable to drop privileges to '%s' because this user does not exist. Trying '_mosquitto' instead.", config->user);
|
||||
+ pwd = getpwnam("_mosquitto");
|
||||
if(!pwd){
|
||||
- log__printf(NULL, MOSQ_LOG_ERR, "Error: Unable to drop privileges to 'nobody'.");
|
||||
+ log__printf(NULL, MOSQ_LOG_ERR, "Error: Unable to drop privileges to '_mosquitto'.");
|
||||
return 1;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue