SHA256
1
0
forked from pool/nsd
nsd/nsd-3.0.5_strcmp.patch
Marcus Rueckert 299ec3d139 Accepting request 46948 from home:Marcus_H:branches:server:dns
Copy from home:Marcus_H:branches:server:dns/nsd via accept of submit request 46948 revision 3.
Request was accepted with message:
reviewed ok

OBS-URL: https://build.opensuse.org/request/show/46948
OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=14
2010-09-02 09:48:24 +00:00

14 lines
462 B
Diff

Index: nsd.c
===================================================================
--- nsd.c.orig
+++ nsd.c
@@ -555,7 +555,7 @@ main (int argc, char *argv[])
if(nsd.options->pidfile) nsd.pidfile = nsd.options->pidfile;
else nsd.pidfile = PIDFILE;
}
- if(nsd.identity == hostname || nsd.identity == IDENTITY)
+ if(!strcmp(nsd.identity, hostname) || !strcmp(nsd.identity, IDENTITY))
{
if(nsd.options->identity) nsd.identity = nsd.options->identity;
}