Fossil SCM

Corrected "fossil user password" error message. It had an extra user

mjanssen 2007-09-24 20:21 trunk
Commit df3d6cbff5949a10e10957ad2ca016f0e8cafb2f
2 files changed +1 -1 +1
+1 -1
--- src/user.c
+++ src/user.c
@@ -213,11 +213,11 @@
213213
db_finalize(&q);
214214
}else if( n>=2 && strncmp(g.argv[2],"password",2)==0 ){
215215
char *zPrompt;
216216
int uid;
217217
Blob pw;
218
- if( g.argc!=4 ) usage("user password USERNAME");
218
+ if( g.argc!=4 ) usage("password USERNAME");
219219
uid = db_int(0, "SELECT uid FROM user WHERE login=%Q", g.argv[3]);
220220
if( uid==0 ){
221221
fossil_fatal("no such user: %s", g.argv[3]);
222222
}
223223
zPrompt = mprintf("new passwd for %s: ", g.argv[3]);
224224
--- src/user.c
+++ src/user.c
@@ -213,11 +213,11 @@
213 db_finalize(&q);
214 }else if( n>=2 && strncmp(g.argv[2],"password",2)==0 ){
215 char *zPrompt;
216 int uid;
217 Blob pw;
218 if( g.argc!=4 ) usage("user password USERNAME");
219 uid = db_int(0, "SELECT uid FROM user WHERE login=%Q", g.argv[3]);
220 if( uid==0 ){
221 fossil_fatal("no such user: %s", g.argv[3]);
222 }
223 zPrompt = mprintf("new passwd for %s: ", g.argv[3]);
224
--- src/user.c
+++ src/user.c
@@ -213,11 +213,11 @@
213 db_finalize(&q);
214 }else if( n>=2 && strncmp(g.argv[2],"password",2)==0 ){
215 char *zPrompt;
216 int uid;
217 Blob pw;
218 if( g.argc!=4 ) usage("password USERNAME");
219 uid = db_int(0, "SELECT uid FROM user WHERE login=%Q", g.argv[3]);
220 if( uid==0 ){
221 fossil_fatal("no such user: %s", g.argv[3]);
222 }
223 zPrompt = mprintf("new passwd for %s: ", g.argv[3]);
224
+1
--- todo.txt
+++ todo.txt
@@ -23,10 +23,11 @@
2323
* Bug: pull is ending prematurely.
2424
2525
* Bug: Make sure merge and other commands (check-out) do not try
2626
to use a phantom.
2727
28
+ * Bug: When clone use incorrect http URL, local repo file is still created.
2829
2930
Things to work on:
3031
3132
* Use the wiki_convert() routine to render comments and other text
3233
on web pages.
3334
--- todo.txt
+++ todo.txt
@@ -23,10 +23,11 @@
23 * Bug: pull is ending prematurely.
24
25 * Bug: Make sure merge and other commands (check-out) do not try
26 to use a phantom.
27
 
28
29 Things to work on:
30
31 * Use the wiki_convert() routine to render comments and other text
32 on web pages.
33
--- todo.txt
+++ todo.txt
@@ -23,10 +23,11 @@
23 * Bug: pull is ending prematurely.
24
25 * Bug: Make sure merge and other commands (check-out) do not try
26 to use a phantom.
27
28 * Bug: When clone use incorrect http URL, local repo file is still created.
29
30 Things to work on:
31
32 * Use the wiki_convert() routine to render comments and other text
33 on web pages.
34

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button