[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [2829] Now the parser for the `/etc/passwd' file works
From: |
Giuseppe Scrivano |
Subject: |
[myserver-commit] [2829] Now the parser for the `/etc/passwd' file works well with multiline comments. |
Date: |
Sat, 20 Sep 2008 13:50:27 +0000 |
Revision: 2829
http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=2829
Author: gscrivano
Date: 2008-09-20 13:50:26 +0000 (Sat, 20 Sep 2008)
Log Message:
-----------
Now the parser for the `/etc/passwd' file works well with multiline comments.
Modified Paths:
--------------
trunk/myserver/src/base/home_dir/home_dir.cpp
Modified: trunk/myserver/src/base/home_dir/home_dir.cpp
===================================================================
--- trunk/myserver/src/base/home_dir/home_dir.cpp 2008-09-20 12:54:53 UTC
(rev 2828)
+++ trunk/myserver/src/base/home_dir/home_dir.cpp 2008-09-20 13:50:26 UTC
(rev 2829)
@@ -168,15 +168,14 @@
string *old;
if(buffer[counter] == '#')
+ {
while(buffer[counter++] != '\n');
+ continue;
+ }
- if(counter >= size)
- break;
-
/* Username. */
-
username = &buffer[counter];
-
+
while(buffer[counter++] != '\0');
/* Password. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [2829] Now the parser for the `/etc/passwd' file works well with multiline comments.,
Giuseppe Scrivano <=