]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Revert "Document absolute times for 'kinit -s'"
authorBen Kaduk <kaduk@mit.edu>
Fri, 6 Jul 2012 22:56:57 +0000 (18:56 -0400)
committerBen Kaduk <kaduk@mit.edu>
Sun, 8 Jul 2012 03:25:45 +0000 (23:25 -0400)
This reverts commit 20f85a81151f69689e3c060e89852687eb6c5a3c.
The ability of 'kinit -s' to accept an absolute time is
intentionally undocumented and remains only for backwards
compatibility.
Leave a comment in the source to this effect, for future generations.

doc/rst_source/krb_users/user_commands/kinit.rst
src/clients/kinit/kinit.c

index a07962d4d3fdff255135fbf76863ff37f6f57ef5..6143c95e47c7242d04a421d7de4d66ee634f1dd5 100644 (file)
@@ -73,11 +73,7 @@ OPTIONS
     validation before use.
 
     *start_time* specifies the duration of the delay before the ticket
-    can become valid using the same time format as the  **-l** option;
-    alternately, an absolute time may be specified in one of several
-    forms, including *[[yy]yymmdd]hhmm[ss]* (and some variants with
-    *.* or *:* as a field separator), and some locale-specific time
-    specifications.
+    can become valid using the same time format as the  **-l** option.
 
 **-r** *renewable_life*
     requests renewable tickets, with a total lifetime of
index dcec9b76625e3d9ecab8fd8108fe066c8e553474..256f165fe931bce24f738e64c55cd8f3324a6053 100644 (file)
@@ -330,6 +330,8 @@ parse_options(argc, argv, opts)
         case 's':
             code = krb5_string_to_deltat(optarg, &opts->starttime);
             if (code != 0 || opts->starttime == 0) {
+                /* Parse as an absolute time; intentionally undocumented
+                 * but left for backwards compatibility. */
                 krb5_timestamp abs_starttime;
 
                 code = krb5_string_to_timestamp(optarg, &abs_starttime);