mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
doc: Document the gpgconf --unlock command.
* tools/gpgconf.c (main): Fix usage message. -- GnuPG-bug-id: 6838
This commit is contained in:
parent
8dfbad0c41
commit
e65720f286
@ -387,12 +387,23 @@ daemons. Note that as of now reload and kill have the same effect for
|
|||||||
Create a directory for sockets below /run/user or /var/run/user. This
|
Create a directory for sockets below /run/user or /var/run/user. This
|
||||||
is command is only required if a non default home directory is used
|
is command is only required if a non default home directory is used
|
||||||
and the /run based sockets shall be used. For the default home
|
and the /run based sockets shall be used. For the default home
|
||||||
directory GnUPG creates a directory on the fly.
|
directory GnuPG creates a directory on the fly.
|
||||||
|
|
||||||
@item --remove-socketdir
|
@item --remove-socketdir
|
||||||
@opindex remove-socketdir
|
@opindex remove-socketdir
|
||||||
Remove a directory created with command @option{--create-socketdir}.
|
Remove a directory created with command @option{--create-socketdir}.
|
||||||
|
|
||||||
|
@item --unlock @var{name}
|
||||||
|
@itemx --lock @var{name}
|
||||||
|
Remove a stale lock file hold for @file{file}. The file is
|
||||||
|
expected in the current GnuPG home directory. This command is usually
|
||||||
|
not required because GnuPG is able to detect and remove stale lock
|
||||||
|
files. Before using the command make sure that the file protected by
|
||||||
|
the lock file is actually not in use. The lock command may be used to
|
||||||
|
lock an accidently removed lock file. Note that the commands have no
|
||||||
|
effect on Windows because the mere existence of a lock file does not
|
||||||
|
mean that the lock is active.
|
||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
|
||||||
|
@ -1074,12 +1074,12 @@ main (int argc, char **argv)
|
|||||||
#if !defined(HAVE_W32_SYSTEM)
|
#if !defined(HAVE_W32_SYSTEM)
|
||||||
if (!fname)
|
if (!fname)
|
||||||
{
|
{
|
||||||
es_fprintf (es_stderr, "usage: %s [options] lock|unlock NAME",
|
es_fprintf (es_stderr, "usage: %s --%slock NAME",
|
||||||
GPGCONF_NAME);
|
GPGCONF_NAME, cmd==aDotlockUnlock?"un":"");
|
||||||
es_putc ('\n', es_stderr);
|
es_putc ('\n', es_stderr);
|
||||||
es_fputs (_("Need one NAME argument"), es_stderr);
|
es_fputs ("Need name of file protected by the lock", es_stderr);
|
||||||
es_putc ('\n', es_stderr);
|
es_putc ('\n', es_stderr);
|
||||||
gpgconf_failure (GPG_ERR_USER_2);
|
gpgconf_failure (GPG_ERR_SYNTAX);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user