~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/lib/Xaw/genlist.sh

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
tmp=/tmp/gl.$$
 
4
nm $* | egrep '(Widget|Obj|Object)Class' | \
 
5
awk '{ if ($2 == "D" || $2 == "G") print $3; }' | sed -e 's/^_//' | \
 
6
(cat - ; echo "objectClass") | sort -u | egrep -v 'ClassRec$' | \
 
7
egrep -v 'vPanedWidgetClass$' | \
 
8
egrep -v 'ascii(Disk|String)WidgetClass$' | \
 
9
awk '
 
10
{
 
11
    printf "extern WidgetClass %s;\n", $1;
 
12
    printf "{ \"%s\", &%s },\n", $1, $1;
 
13
}' | sed -e 's/WidgetClass"/"/' -e 's/ObjClass"/"/' \
 
14
         -e 's/ObjectClass"/"/' -e 's/objectClass"/object"/' \
 
15
         -e 's/widgetClass"/widget"/' >$tmp
 
16
 
 
17
cat <<EOF
 
18
/*
 
19
 * This file is generated by the genlist.sh script and contains an array of
 
20
 * all the widgets in Athena widget set.
 
21
 *
 
22
 * \$XConsortium\$
 
23
 */
 
24
#include <X11/IntrinsicP.h>
 
25
#include <X11/Xmu/WidgetNode.h>
 
26
 
 
27
EOF
 
28
egrep '^extern WidgetClass' $tmp
 
29
echo ""
 
30
cat <<EOF
 
31
XmuWidgetNode XawWidgetArray[] = {
 
32
EOF
 
33
egrep '^{' $tmp
 
34
cat <<EOF
 
35
};
 
36
 
 
37
int XawWidgetCount = XtNumber(XawWidgetArray);
 
38
 
 
39
EOF
 
40
 
 
41
rm $tmp