fkvm_userpoke syscall - "magic" changes
[freebsd-src/fkvm-freebsd.git] / crypto / openssl / util / dirname.pl
blobd7a66d96accf22be920e8b263d61ee6af4b0e120
1 #!/usr/local/bin/perl
3 if ($#ARGV < 0) {
4 die "dirname.pl: too few arguments\n";
5 } elsif ($#ARGV > 0) {
6 die "dirname.pl: too many arguments\n";
9 my $d = $ARGV[0];
11 if ($d =~ m|.*/.*|) {
12 $d =~ s|/[^/]*$||;
13 } else {
14 $d = ".";
17 print $d,"\n";
18 exit(0);