Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 151626
Collapse All | Expand All

(-)sys/fs/ntfs/ntfs_vnops.c.orig (-4 / +12 lines)
Lines 507-514 Link Here
507
507
508
	/* Simulate . in every dir except ROOT */
508
	/* Simulate . in every dir except ROOT */
509
	if( ip->i_number != NTFS_ROOTINO ) {
509
	if( ip->i_number != NTFS_ROOTINO ) {
510
		struct dirent dot = { NTFS_ROOTINO,
510
		struct dirent dot;
511
				sizeof(struct dirent), DT_DIR, 1, "." };
511
		dot.d_fileno	= NTFS_ROOTINO;
512
		dot.d_reclen	= sizeof(struct dirent);
513
		dot.d_type	= DT_DIR;
514
		dot.d_namlen	= 1;
515
		bcopy(".", dot.d_name, 1);
512
516
513
		if( uio->uio_offset < sizeof(struct dirent) ) {
517
		if( uio->uio_offset < sizeof(struct dirent) ) {
514
			dot.d_fileno = ip->i_number;
518
			dot.d_fileno = ip->i_number;
Lines 522-529 Link Here
522
526
523
	/* Simulate .. in every dir including ROOT */
527
	/* Simulate .. in every dir including ROOT */
524
	if( uio->uio_offset < 2 * sizeof(struct dirent) ) {
528
	if( uio->uio_offset < 2 * sizeof(struct dirent) ) {
525
		struct dirent dotdot = { NTFS_ROOTINO,
529
		struct dirent dotdot;
526
				sizeof(struct dirent), DT_DIR, 2, ".." };
530
		dotdot.d_fileno	= NTFS_ROOTINO;
531
		dotdot.d_reclen	= sizeof(struct dirent);
532
		dotdot.d_type	= DT_DIR;
533
		dotdot.d_namlen	= 2;
534
		bcopy("..", dotdot.d_name, 2);
527
535
528
		error = uiomove((char *)&dotdot,sizeof(struct dirent),uio);
536
		error = uiomove((char *)&dotdot,sizeof(struct dirent),uio);
529
		if(error)
537
		if(error)

Return to bug 151626