Re: [PATCH 3/3] Teach "git branch" about --new-workdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, 23 Jul 2007, Johannes Schindelin wrote:

> 	struct stat st;
> 	int i = 0;
> 
> 	while (i++ < 10 && !lstat(path, &st) && S_ISLNK(st.st_mode)) {
> 		ssize_t sz;
> 		static char target[PATH_MAX];
> 		sz = readlink(path, target, sizeof(target));
> 		if (sz < 0)
> 			die("Cannot readlink %s", path);
> 		else
> 			path = target;

Probably this should be "make_absolute_path(target)" after applying the 
minipatch I provided elsewhere.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux