chiark / gitweb /
cgi-fcgi-interp: Document accurately the default ident
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 29 Mar 2016 22:39:04 +0000 (23:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 29 Mar 2016 22:39:04 +0000 (23:39 +0100)
cprogs/cgi-fcgi-interp.c

index b9deba7bc9b88d5d773079b4b43b950a07cfdf36..96037a32c94daf740ce87cff7cb9178cb2358b3f 100644 (file)
@@ -38,7 +38,7 @@
  *          be an absolute path; will be fed to execvp.
  *
  *  -g<ident>
- *          Use <ident> rather than hex(sha256(<script>))
+ *          Use <ident> rather than hex(sha256(<interp>\0<script>\0))
  *          as the basename of the leafname of the fcgi rendezvous
  *          socket.  If <ident> contains only hex digit characters it
  *          ought to be no more than 32 characters.  <ident> should
@@ -77,8 +77,8 @@
  *   s<ident>
  *   l<ident>    used to lock around garbage collection
  *
- * If -M<ident> is not specified then an initial substricg of the
- * lowercase hex of the sha256 of the <script> (ie, our argv[1]) is
+ * If -M<ident> is not specified then an initial substring of the
+ * lowercase hex of the sha256 of <interp>\0<script>\0 is
  * used.  The substring is chosen so that the whole path is 10 bytes
  * shorter than sizeof(sun_path).  But always at least 33 characters.
  *