Changeset 3f0c882 for chapter06/mktemp.xml
- Timestamp:
- 12/21/2004 07:38:32 PM (19 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 3d36131c
- Parents:
- aaa3260
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/mktemp.xml
raaa3260 r3f0c882 11 11 12 12 <sect2 role="package"><title/> 13 <para>The Mktemp package contains programs used to create secure temporary14 files in shell scripts.</para>15 13 16 14 <segmentedlist> … … 20 18 </segmentedlist> 21 19 22 <para>The installation dependencies for Mktemp haven't been checked yet.</para>23 24 20 </sect2> 25 21 … … 27 23 <title>Installation of Mktemp</title> 28 24 29 <para>Many scripts still use the deprecated <command>tempfile</command> 30 program, which has functionality much the same as <command>mktemp</command>. 31 Patch Mktemp to include a <command>tempfile</command> wrapper:</para> 25 <para>Apply a patch:</para> 32 26 33 27 <screen><userinput>patch -Np1 -i ../mktemp-&mktemp-version;-add_tempfile-1.patch</userinput></screen> … … 36 30 37 31 <screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen> 38 39 <para>The meaning of the configure option:</para>40 41 <variablelist>42 <varlistentry>43 <term><parameter>--with-libc</parameter></term>44 <listitem><para>This causes the <command>mktemp</command> program to45 use the <emphasis>mkstemp</emphasis> and <emphasis>mkdtemp</emphasis>46 functions from the system C library.</para></listitem>47 </varlistentry>48 </variablelist>49 32 50 33 <para>Compile the package:</para> … … 62 45 <sect2 id="contents-mktemp" role="content"><title>Contents of Mktemp</title> 63 46 64 <segmentedlist> 65 <segtitle>Installed programs</segtitle> 66 <seglistitem><seg>mktemp, tempfile</seg></seglistitem> 67 </segmentedlist> 68 69 <variablelist><title>Short descriptions</title> 70 71 <varlistentry id="mktemp"> 72 <term><command>mktemp</command></term> 73 <listitem> 74 <indexterm zone="ch-system-mktemp mktemp"><primary sortas="b-mktemp">mktemp</primary></indexterm> 75 <para>creates temporary files in a secure manner. It is used in scripts.</para> 76 </listitem> 77 </varlistentry> 78 79 <varlistentry id="tempfile"> 80 <term><command>tempfile</command></term> 81 <listitem> 82 <indexterm zone="ch-system-mktemp tempfile"><primary sortas="b-tempfile">tempfile</primary></indexterm> 83 <para>creates temporary files in a less secure manner than 84 <command>mktemp</command>. It is installed for backwards-compatibility.</para> 85 </listitem> 86 </varlistentry> 87 </variablelist> 47 <para>See testing</para> 88 48 89 49 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.