After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 55805 - mistake in gnome-vfs/modules/nfs-method.c
mistake in gnome-vfs/modules/nfs-method.c
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Maciej Stachowiak
Maciej Stachowiak
: 359884 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-06-06 07:41 UTC by Martin Pool
Modified: 2006-10-06 15:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Pool 2001-06-06 07:41:16 UTC
static GnomeVFSResult
  rpc_init_tcp(NfsServerConnection *c)
  {
  	/* create TCP clients */
  	if ((c->mount_client = clnttcp_create(c->mount_server_addr,
  	
			MOUNTPROG, MOUNTVERS,
  	
			&c->mount_sock, 0, 0)) == NULL) {
  		clnt_pcreateerror("clnttcp_create");
  		return GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE;
  	}
  	if ((c->mount_client = clnttcp_create(c->nfs_server_addr,
  	
			NFS_PROGRAM, NFS_VERSION,
  	
			&c->nfs_sock, 0, 0)) == NULL) {
  		clnt_pcreateerror("clnttcp_create");
  		return GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE;
  	}
  	return GNOME_VFS_OK;
  }

The second assignment is obviously wrong: you should be assigning to
->nfs_client, not mount_client.

Cheers,
-- 
Martin
Comment 1 Maciej Stachowiak 2001-10-07 09:50:47 UTC
I applied the change to both branches. I didn't test because
nfs-method is not in a working state currently.
Comment 2 Charles Kerr 2006-10-06 15:23:57 UTC
*** Bug 359884 has been marked as a duplicate of this bug. ***