Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins/file


Modified Files:
        evfs_fs_samba.c 


Log Message:
* MetaData harvesting work

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_samba.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- evfs_fs_samba.c     24 Jun 2006 13:01:04 -0000      1.5
+++ evfs_fs_samba.c     5 Aug 2006 12:25:10 -0000       1.6
@@ -155,34 +155,13 @@
         strncpy(username, obj->username, unmaxlen);
         strncpy(password, obj->password, pwmaxlen);
         return;
-     }
-
-   fprintf(stdout, "Enter workgroup: [%s] ", workgroup);
-   fgets(temp, sizeof(temp), stdin);
-
-   if (temp[strlen(temp) - 1] == 0x0a)  /* A new line? */
-      temp[strlen(temp) - 1] = 0x00;
-
-   if (temp[0])
-      strncpy(workgroup, temp, wgmaxlen - 1);
-
-   fprintf(stdout, "Enter username: [%s] ", username);
-   fgets(temp, sizeof(temp), stdin);
+     } else {
+            /*Otherwise - fail - ask user -try again - TODO
+             */
 
-   if (temp[strlen(temp) - 1] == 0x0a)  /* A new line? */
-      temp[strlen(temp) - 1] = 0x00;
-
-   if (temp[0])
-      strncpy(username, temp, unmaxlen - 1);
-
-   fprintf(stdout, "Enter password: [%s] ", password);
-   fgets(temp, sizeof(temp), stdin);
-
-   if (temp[strlen(temp) - 1] == 0x0a)  /* A new line? */
-      temp[strlen(temp) - 1] = 0x00;
-
-   if (temp[0])
-      strncpy(password, temp, pwmaxlen - 1);
+            strcpy(username, "anonymous");
+            strcpy(password, "password");
+     }
 
 }
 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to