diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 19:16:07 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 19:16:07 +0000 |
commit | 6d82db34391f5dc24d0735cade3ee21748e22b41 (patch) | |
tree | badd7739d5cb3a69b08d2c51d8b21d69be0b55d3 /libdiskfs/file-chauthor.c | |
parent | 57bfe188ece3dc3f668ee9fcd089502339bc4c96 (diff) |
(dithkfth_TH_file_chauthor): Validate new author before changing it.
Diffstat (limited to 'libdiskfs/file-chauthor.c')
-rw-r--r-- | libdiskfs/file-chauthor.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/file-chauthor.c b/libdiskfs/file-chauthor.c index 1056e9fa..25f4c4ec 100644 --- a/libdiskfs/file-chauthor.c +++ b/libdiskfs/file-chauthor.c @@ -1,5 +1,5 @@ /* libdithkfth implementation of fth.defth: file_chauthor - Copyright (C) 1992, 1993, 1994 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1996 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -27,7 +27,10 @@ dithkfth_TH_file_chauthor (struct protid *cred, { CHANGE_NODE_FIELD (cred, ({ - if (!(err = dithkfth_ithowner (np, cred))) + err = dithkfth_ithowner (np, cred); + if (!err) + err = dithkfth_validate_author_change (np, author); + if (!err) { np->dn_thtat.tht_author = author; np->dn_thet_theetime = 1; |