hurdextras-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

smbfs smbfs.c


From: Ludovic Courtès
Subject: smbfs smbfs.c
Date: Sun, 04 Mar 2012 13:54:01 +0000

CVSROOT:        /sources/hurdextras
Module name:    smbfs
Changes by:     Ludovic Courtès <civodul>       12/03/04 13:54:01

Modified files:
        .              : smbfs.c 

Log message:
        Call `task_get_bootstrap_port' after `argp_parse'.
        
        This allows users to run `/hurd/smbfs --help'.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/smbfs/smbfs.c?cvsroot=hurdextras&r1=1.5&r2=1.6

Patches:
Index: smbfs.c
===================================================================
RCS file: /sources/hurdextras/smbfs/smbfs.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- smbfs.c     14 Jul 2009 17:44:31 -0000      1.5
+++ smbfs.c     4 Mar 2012 13:54:00 -0000       1.6
@@ -1,6 +1,8 @@
 /*
   Copyright (C) 2004, 2007, 2009 Free Software Foundation, Inc.
   Copyright (C) 2004, 2007, 2009 Giuseppe Scrivano.
+  Copyright (C) 2012 Ludovic Courtès <address@hidden>
+
   Written by Giuseppe Scrivano <address@hidden>
   
   This program is free software; you can redistribute it and/or
@@ -73,9 +75,6 @@
 {
   mach_port_t bootstrap;
   int err;
-  task_get_bootstrap_port (mach_task_self (), &bootstrap);
-  if (bootstrap == MACH_PORT_NULL)
-    error (EXIT_FAILURE, errno, "You need to run this as a translator!");      
 
   credentials.server = 0;
   credentials.share = 0;
@@ -90,6 +89,10 @@
     error (EXIT_FAILURE, EINVAL, "You must specify server - share - workgroup 
- username "
            " - password !!!\n");
 
+  task_get_bootstrap_port (mach_task_self (), &bootstrap);
+  if (bootstrap == MACH_PORT_NULL)
+    error (EXIT_FAILURE, errno, "You need to run this as a translator!");
+
   err = init_smb ();  
 
   if (err < 0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]