ports/60361: [PATCH] Samba 2.2.8a (2.2.8)- broken support for password changing via CTRL-ALT-DEL on Windows client

jmelo at freebsdbrasil.com.br jmelo at freebsdbrasil.com.br
Thu Dec 18 12:10:25 UTC 2003


>Number:         60361
>Category:       ports
>Synopsis:       [PATCH] Samba 2.2.8a (2.2.8)- broken support for password changing via CTRL-ALT-DEL on Windows client
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 18 04:10:12 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jean Milanez Melo
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD freebsdbrasil.com.br 4.8-STABLE FreeBSD 4.8-STABLE #2: Fri Nov 14 10:04:05 BRST 2003 root at offset.freebsdbrasil.com.br:/usr/src/sys/compile/OFFSET i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	This is the suggest patch do correct this port problem.

--- util_sec.c.patch begins here ---
*** CVS_ROOT/freebsdbrasil/samba/source/lib/util_sec.c.orig	Wed Jul 17 10:47:49 2002
--- CVS_ROOT/freebsdbrasil/samba/source/lib/util_sec.c	Thu Dec 11 19:19:47 2003
***************
*** 94,101 ****
  			DEBUG(0,("Failed to set uid privileges to (%d,%d) now set to (%d,%d)\n",
  				 (int)ruid, (int)euid,
  				 (int)getuid(), (int)geteuid()));
! 			smb_panic("failed to set uid\n");
! 			exit(1);
  		}
  	}
  }
--- 94,101 ----
  			DEBUG(0,("Failed to set uid privileges to (%d,%d) now set to (%d,%d)\n",
  				 (int)ruid, (int)euid,
  				 (int)getuid(), (int)geteuid()));
! //			smb_panic("failed to set uid\n");
! //			exit(1);
  		}
  	}
  }
***************
*** 112,119 ****
  				 (int)rgid, (int)egid,
  				 (int)getgid(), (int)getegid(),
  				 (int)getuid(), (int)geteuid()));
! 			smb_panic("failed to set gid\n");
! 			exit(1);
  		}
  	}
  }
--- 112,119 ----
  				 (int)rgid, (int)egid,
  				 (int)getgid(), (int)getegid(),
  				 (int)getuid(), (int)geteuid()));
! //			smb_panic("failed to set gid\n");
! //			exit(1);
  		}
  	}
  }
***************
*** 199,205 ****
  	setuidx(ID_EFFECTIVE, uid);
  #endif
  
- 	assert_uid(-1, uid);
  }
  
  /****************************************************************************
--- 199,204 ----
***************
*** 224,230 ****
  	setgidx(ID_EFFECTIVE, gid);
  #endif
  
- 	assert_gid(-1, gid);
  }
  
  static uid_t saved_euid, saved_ruid;
--- 223,228 ----
***************
*** 330,337 ****
  	return -1;
  #endif
  
! 	assert_uid(uid, uid);
! 	return 0;
  }
  
  
--- 328,334 ----
  	return -1;
  #endif
  
! 	return -1;
  }
  
  
--- util_sec.c.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list