Switch to unified view
a/upmpd/upmpd.cxx | b/upmpd/upmpd.cxx | ||
---|---|---|---|
... |
... |
||
382 | } else { |
382 | } else { |
383 | close(fd); |
383 | close(fd); |
384 | if (geteuid() == 0 && chown(mcfn.c_str(), runas, -1) != 0) { |
384 | if (geteuid() == 0 && chown(mcfn.c_str(), runas, -1) != 0) { |
385 | LOGERR("chown("<< mcfn << ") : errno : " << errno << endl); |
385 | LOGERR("chown("<< mcfn << ") : errno : " << errno << endl); |
386 | } |
386 | } |
387 | if (geteuid() == 0 && chown(cachedir.c_str(), runas, -1) != 0) { |
||
388 | LOGERR("chown("<< cachedir << ") : errno : " << errno << endl); |
||
389 | } |
||
387 | } |
390 | } |
388 | } |
391 | } |
389 | } |
392 | } |
390 | 393 | ||
391 | if ((op_flags & OPT_D)) { |
394 | if ((op_flags & OPT_D)) { |