File sqmail-install-dont-chown.patch of Package sqmail

diff -ur mail-orig/sqmail/sqmail-4.3.16/src/install.c mail/sqmail/sqmail-4.3.16/src/install.c
--- mail-orig/sqmail/sqmail-4.3.16/src/install.c	2024-08-19 15:12:13.000000000 +0200
+++ mail/sqmail/sqmail-4.3.16/src/install.c	2024-09-27 10:36:53.654147292 +0200
@@ -17,8 +17,8 @@
   if (mkdir(home,0700) == -1)
     if (errno != EEXIST)
       logmsg(WHO,111,FATAL,B("unable to mkdir: ",home));
-  if (chown(home,uid,gid) == -1)
-    logmsg(WHO,111,FATAL,B("unable to chown: ",home));
+//  if (chown(home,uid,gid) == -1)
+//    logmsg(WHO,111,FATAL,B("unable to chown: ",home));
   if (chmod(home,mode) == -1)
     logmsg(WHO,111,FATAL,B("unable to chmod: ",home));
 
@@ -40,10 +40,10 @@
   if (mkdir(subdir,0700) == -1)
     if (errno != EEXIST)
       logmsg(WHO,111,FATAL,B("unable to mkdir: ",home,"/",subdir));
-  if (chown(subdir,uid,gid) == -1)
-    logmsg(WHO,111,FATAL,B("unable to chown: ",home,"/",subdir));
-  if (chmod(subdir,mode) == -1)
-    logmsg(WHO,111,FATAL,B("unable to chmod: ",home,"/",subdir));
+//  if (chown(subdir,uid,gid) == -1)
+//    logmsg(WHO,111,FATAL,B("unable to chown: ",home,"/",subdir));
+//  if (chmod(subdir,mode) == -1)
+//    logmsg(WHO,111,FATAL,B("unable to chmod: ",home,"/",subdir));
 }
 
 void p(char *queue,char *fifo,int uid,int gid,int mode)
@@ -53,8 +53,8 @@
   if (fifo_make(fifo,0700) == -1)
     if (errno != EEXIST)
       logmsg(WHO,111,FATAL,B("unable to mkfifo: ",queue,"/queue/",fifo));
-  if (chown(fifo,uid,gid) == -1)
-    logmsg(WHO,111,FATAL,B("unable to chown: ",queue,"/queue/",fifo));
+//  if (chown(fifo,uid,gid) == -1)
+//    logmsg(WHO,111,FATAL,B("unable to chown: ",queue,"/queue/",fifo));
   if (chmod(fifo,mode) == -1)
     logmsg(WHO,111,FATAL,B("unable to chmod: ",queue,"/queue/",fifo));
 }
@@ -102,8 +102,8 @@
   if (close(fdout) == -1) /* NFS silliness */
     logmsg(WHO,111,FATAL,B("unable to write .../",subdir,"/",file));
 
-  if (chown(file,uid,gid) == -1)
-    logmsg(WHO,111,FATAL,B("unable to chown .../",subdir,"/",file));
+//  if (chown(file,uid,gid) == -1)
+//    logmsg(WHO,111,FATAL,B("unable to chown .../",subdir,"/",file));
   if (chmod(file,mode) == -1)
     logmsg(WHO,111,FATAL,B("unable to chmod .../",subdir,"/",file));
 }
@@ -131,8 +131,8 @@
   if (close(fdout) == -1) /* NFS silliness */
     logmsg(WHO,111,FATAL,B("unable to write: ",home,"/",file));
 
-  if (chown(file,uid,gid) == -1)
-    logmsg(WHO,111,FATAL,B("unable to chown: ",home,"/",file));
+//  if (chown(file,uid,gid) == -1)
+//    logmsg(WHO,111,FATAL,B("unable to chown: ",home,"/",file));
   if (chmod(file,mode) == -1)
     logmsg(WHO,111,FATAL,B("unable to chmod: ",home,"/",file));
 }
Nur in mail/sqmail/sqmail-4.3.16/src: install.c.rej.
openSUSE Build Service is sponsored by