[6662] in Athena Bugs

home help back first fref pref prev next nref lref last post

attach

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Sat Dec 22 21:13:38 1990

To: bugs@ATHENA.MIT.EDU
Date: Sat, 22 Dec 90 21:13:26 EST
From: John Carr <jfc@ATHENA.MIT.EDU>


This change makes attach get NFS mappings as the other user when "-U"
is used.  It is needed for xlogin to work on the PS/2.

*** nfs.c.orig	Mon Jul 16 09:21:26 1990
--- nfs.c	Sat Dec 22 21:08:47 1990
***************
*** 82,88 ****
  
  	if ((at->mode != 'n') && do_nfsid)
  		if (nfsid(at->host, at->hostaddr, MOUNTPROC_KUIDMAP,
! 			  errorout, at->hesiodname, 1, real_uid) == FAILURE) {
  			if (mopt->flags & M_RDONLY) {
  				printf("%s: Warning, mapping failed for filesystem %s,\n\tcontinuing with read-only mount.\n",
  				       progname, at->hesiodname);
--- 82,88 ----
  
  	if ((at->mode != 'n') && do_nfsid)
  		if (nfsid(at->host, at->hostaddr, MOUNTPROC_KUIDMAP,
! 			  errorout, at->hesiodname, 1, owner_uid) == FAILURE) {
  			if (mopt->flags & M_RDONLY) {
  				printf("%s: Warning, mapping failed for filesystem %s,\n\tcontinuing with read-only mount.\n",
  				       progname, at->hesiodname);
***************
*** 118,124 ****
  	if (mountfs(at, fsname, mopt, errorout) == FAILURE) {
  		if ((at->mode != 'n') && do_nfsid)
  			nfsid(at->host, at->hostaddr, MOUNTPROC_KUIDUMAP,
! 			      errorout, at->hesiodname, 1, real_uid);
  		return (FAILURE);
  	}
  
--- 118,124 ----
  	if (mountfs(at, fsname, mopt, errorout) == FAILURE) {
  		if ((at->mode != 'n') && do_nfsid)
  			nfsid(at->host, at->hostaddr, MOUNTPROC_KUIDUMAP,
! 			      errorout, at->hesiodname, 1, owner_uid);
  		return (FAILURE);
  	}
  
***************
*** 133,139 ****
  {
  	if ((at->mode != 'n') && do_nfsid &&
  	    nfsid(at->host, at->hostaddr, MOUNTPROC_KUIDUMAP, 1,
! 		  at->hesiodname,0, real_uid) == FAILURE)
  		printf("%s: Warning: couldn't unmap filesystem %s/host %s\n",
  		       progname, at->hesiodname, at->host);
  
--- 133,139 ----
  {
  	if ((at->mode != 'n') && do_nfsid &&
  	    nfsid(at->host, at->hostaddr, MOUNTPROC_KUIDUMAP, 1,
! 		  at->hesiodname,0, owner_uid) == FAILURE)
  		printf("%s: Warning: couldn't unmap filesystem %s/host %s\n",
  		       progname, at->hesiodname, at->host);
  


home help back first fref pref prev next nref lref last post